<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/doc/src/codecs.qdoc -->
<head>
  <title>Qt 4.3: GBK Text Codec</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">GBK Text Codec<br /><small></small></h1>
<p>The GBK codec provides conversion to and from the Chinese GB18030/GBK/GB2312 encoding.</p>
<p>GBK, formally the Chinese Internal Code Specification, is a commonly used extension of GB 2312-80. Microsoft Windows uses it under the name codepage 936.</p>
<p>GBK has been superseded by the new Chinese national standard GB 18030-2000, which added a 4-byte encoding while remaining compatible with GB2312 and GBK. The new GB 18030-2000 may be described as a special encoding of Unicode 3.x and ISO-10646-1.</p>
<p>Special thanks to charset gurus Markus Scherer (IBM), Dirk Meyer (Adobe Systems) and Ken Lunde (Adobe Systems) for publishing an excellent GB 18030-2000 summary and specification on the Internet. Some must-read documents are:</p>
<ul>
<li><a href="ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf">ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf</a></li>
<li><a href="http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html">http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html</a></li>
<li><a href="http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml">http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml</a></li>
</ul>
<p>The GBK codec was contributed to Qt by Justin Yu &lt;<a href="mailto:justiny@turbolinux">justiny@turbolinux</a>.com.cn&gt; and Sean Chen &lt;<a href="mailto:seanc@turbolinux">seanc@turbolinux</a>.com.cn&gt;. They may also be reached at Yu Mingjian &lt;<a href="mailto:yumj@sun">yumj@sun</a>.ihep.ac.cn&gt;, &lt;<a href="mailto:yumingjian@china">yumingjian@china</a>.com&gt; Chen Xiangyang &lt;<a href="mailto:chenxy@sun">chenxy@sun</a>.ihep.ac.cn&gt;</p>
<p>The GB18030 codec Qt functions were contributed to Qt by James Su &lt;<a href="mailto:suzhe@gnuchina">suzhe@gnuchina</a>.org&gt;, &lt;<a href="mailto:suzhe@turbolinux">suzhe@turbolinux</a>.com.cn&gt; who pioneered much of GB18030 development on GNU/Linux systems.</p>
<p>The GB18030 codec was contributed to Qt by Anthony Fok &lt;<a href="mailto:anthony@thizlinux">anthony@thizlinux</a>.com&gt;, &lt;<a href="mailto:foka@debian">foka@debian</a>.org&gt; using a Perl script to generate C++ tables from gb-18030-2000.xml while merging contributions from James Su, Justin Yu and Sean Chen. A copy of the source Perl script is available at <a href="http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl">http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl</a></p>
<p>The copyright notice for their code follows:</p>
<div style="padding: 0.5em; background: #e0e0e0; color: black"><p>Copyright (C) 2000 TurboLinux, Inc. Written by Justin Yu and Sean Chen. <br /> Copyright (C) 2001, 2002 Turbolinux, Inc. Written by James Su. <br /> Copyright (C) 2001, 2002 ThizLinux Laboratory Ltd. Written by Anthony Fok.</p>
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
<ol type="1">
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
</ol>
<p>THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
</div><p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
